package top.healthylife.gateway.platform.youshu.api.api;


import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import top.healthylife.gateway.core.service.ParentFace;
import top.healthylife.gateway.dto.annotation.ApiServiceExplain;
import top.healthylife.gateway.platform.youshu.api.utils.YoushuHttpUtil;
import top.healthylife.gateway.platform.youshu.dto.apiTSYH01.req.YoushuReqEnterpriseIllegalRiskInfoDto;
import top.healthylife.gateway.platform.youshu.dto.apiTSYH01.res.YoushuResEnterpriseIllegalRiskInfoDto;

/**
 * @author : GaoZeXi
 * @date 2021/8/8 14:16
 */
@Slf4j
@Service
@ApiServiceExplain(price = 20, apiName = "严重违法失信", info = "接口Id:TSYH01")
public class YoushuEnterpriseIllegalRiskInfoApi implements ParentFace<YoushuReqEnterpriseIllegalRiskInfoDto, YoushuResEnterpriseIllegalRiskInfoDto> {

    static final String API_CODE = "TSYH01";

    @Override
    public YoushuResEnterpriseIllegalRiskInfoDto execute(YoushuReqEnterpriseIllegalRiskInfoDto t) throws Exception {
        return YoushuHttpUtil.httpRequest(t, API_CODE, YoushuResEnterpriseIllegalRiskInfoDto.class);
    }
}
